home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / etc / X11 / Xreset < prev    next >
Encoding:
Text File  |  2010-10-13  |  709 b   |  35 lines

  1. #!/bin/sh
  2. #
  3. # /etc/X11/Xreset
  4. #
  5. # global Xreset file -- for use by display managers
  6.  
  7. # $Id: Xsession 967 2005-12-27 07:20:55Z dnusinow $
  8.  
  9. set -e
  10.  
  11. PROGNAME=Xreset
  12. SYSSESSIONDIR=/etc/X11/Xreset.d
  13.  
  14. if [ ! -d "$SYSSESSIONDIR" ]; then
  15.   # Nothing to do, exiting
  16.   exit 0
  17. fi
  18.  
  19. # use run-parts to source every file in the session directory; we source
  20. # instead of executing so that the variables and functions defined above
  21. # are available to the scripts, and so that they can pass variables to each
  22. # other
  23. SESSIONFILES=$(run-parts --list $SYSSESSIONDIR)
  24. if [ -n "$SESSIONFILES" ]; then
  25.   set +e
  26.   for SESSIONFILE in $SESSIONFILES; do
  27.     . $SESSIONFILE
  28.   done
  29.   set -e
  30. fi
  31.  
  32. exit 0
  33.  
  34. # vim:set ai et sts=2 sw=2 tw=80:
  35.